Open Copilot Studio and select "Copilot for Finance and Operations Apps" under the agent. In this setup, we are utilizing the standard agent for the selected environment.
From the tab - click on ‘Topics’ to add a new topic to the agent.
Furthermore, click on "Add a Topic" and select the required design.
Click on "Create from Description with Copilot" to proceed.
Specify the name and description of the topic, then click the "Create" button.
Additionally, if required, the description can be modified by manually inserting preset keywords to minimize downtime and repetition.
Then click on ‘+ icon’ and select ‘Ask a Question’.
In the description, specify the question you would like to ask when creating a customer.
For example: "Specify the company where the customer needs to be created."
Next, in the Identify tab, select "User’s entire response" to store the user's
complete input.
Similarly, click on the "+" icon, select "Ask a Question," and set the next required question for creating a customer.
Once all the required questions have been added, click on the "+" icon and select "Add an Action." This will automatically open the Power Automate page.
On the Power Automate page, two nodes are automatically added since the flow is triggered from Copilot:
In the Skill node, add the input variables that need to be passed from Copilot to the flow. Here, we have added the input for the variable created in Copilot.
Then, click on the "+" icon and add the Fin&Ops operation to create a record in F&O. Select "Create record" under the Fin & Ops operation.
Rename the node as required; here, we have renamed it "Create Customer."
Select the instance (environment URL).
In the Entity Name field, choose "Customer V3" for creating a customer.
In the Respond to Copilot node, add the variable that needs to be passed to Copilot to display the output.
Once the flow is created, click on "Save" and navigate back to the Copilot Studio page.
In Copilot Studio, click on "Add an Action," and select the flow created in
Power Automate.
In the Action tab, specify the variables declared in Copilot Studio.
Then, click on "Send a Message" to display a message once the record is created
in F&O.
Once all actions are completed, click on "Save" and then "Publish" to apply changes.
Once published, go to D365FO (connected to this Copilot). In the Copilot side panel, ask Copilot to create a customer.
Once the connection is enabled, go to F&O and click on "Retry" to proceed.
The record will be successfully created in D365FO.